Skip to content

[3.12] gh-123431: Harmonize extension code checks in pickle (GH-123434)#123460

Merged
ambv merged 2 commits into
python:3.12from
miss-islington:backport-0c3ea30-3.12
Sep 6, 2024
Merged

[3.12] gh-123431: Harmonize extension code checks in pickle (GH-123434)#123460
ambv merged 2 commits into
python:3.12from
miss-islington:backport-0c3ea30-3.12

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 29, 2024

Copy link
Copy Markdown
Contributor

This checks are redundant in normal circumstances and can only work if
the extension registry was intentionally broken.

  • The Python implementation now raises exception for the extension code
    with false boolean value.
  • Simplify the C code. RuntimeError is now raised in explicit checks.
  • Add many tests.
    (cherry picked from commit 0c3ea30)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…123434)

This checks are redundant in normal circumstances and can only work if
the extension registry was intentionally broken.

* The Python implementation now raises exception for the extension code
  with false boolean value.
* Simplify the C code. RuntimeError is now raised in explicit checks.
* Add many tests.
(cherry picked from commit 0c3ea30)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@ambv ambv merged commit 58e01a1 into python:3.12 Sep 6, 2024
@miss-islington miss-islington deleted the backport-0c3ea30-3.12 branch January 2, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants